home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Borland / Borland C++ V5.02 / APXMDIDV.PAK / APXPREV.H < prev    next >
C/C++ Source or Header  |  1997-05-06  |  2KB  |  71 lines

  1. //----------------------------------------------------------------------------
  2. //  Project ApxMdiDv
  3. //  Borland International
  4. //  Copyright ⌐ 1996. All Rights Reserved.
  5. //
  6. //  SUBSYSTEM:    ApxMdiDv Application
  7. //  FILE:         apxprev.h
  8. //  AUTHOR:
  9. //
  10. //  OVERVIEW
  11. //  ~~~~~~~~
  12. //  Class definition for TApxPreviewWin (Print Preview).
  13. //
  14. //----------------------------------------------------------------------------
  15. #if !defined(apxprev_h)   // Sentry, use file only if it's not already included.
  16. #define apxprev_h
  17.  
  18. #include <owl/controlb.h>
  19. #include <owl/preview.h>
  20.  
  21. #include "apxprint.h"
  22. #include "apxmddva.rh"
  23.  
  24.  
  25. //{{TDecoratedFrame = TApxPreviewWin}}
  26. class TApxPreviewWin : public TDecoratedFrame {
  27.   public:
  28.     TApxPreviewWin(TWindow* parentWindow, TPrinter* printer, TWindow* currWindow, const char far* title, TLayoutWindow* client);
  29.    ~TApxPreviewWin();
  30.  
  31.     int             PageNumber, FromPage, ToPage;
  32.  
  33.     TWindow*        CurrWindow;
  34.     TControlBar*    PreviewSpeedBar;
  35.     TPreviewPage*   Page1;
  36.     TPreviewPage*   Page2;
  37.     TPrinter*       Printer;
  38.  
  39.     TPrintDC*       PrnDC;
  40.     TSize*          PrintExtent;
  41.     TApxPrintout*   Printout;
  42.  
  43.   private:
  44.     TLayoutWindow*  Client;
  45.  
  46.     void SpeedBarState();
  47.     void PPR_PreviousEnable(TCommandEnabler& tce);
  48.     void PPR_NextEnable(TCommandEnabler& tce);
  49.     void PPR_Previous();
  50.     void PPR_Next();
  51.     void PPR_OneUp();
  52.     void PPR_TwoUpEnable(TCommandEnabler& tce);
  53.     void PPR_TwoUp();
  54.     void PPR_Done();
  55.     void CmPrintEnable(TCommandEnabler& tce);
  56.     void CmPrint();
  57.  
  58. //{{TApxPreviewWinVIRTUAL_BEGIN}}
  59.   protected:
  60.     virtual void SetupWindow();
  61. //{{TApxPreviewWinVIRTUAL_END}}
  62.  
  63. //{{TApxPreviewWinRSP_TBL_BEGIN}}
  64.   protected:
  65.     void EvClose();
  66. //{{TApxPreviewWinRSP_TBL_END}}
  67. DECLARE_RESPONSE_TABLE(TApxPreviewWin);
  68. };    //{{TApxPreviewWin}}
  69.  
  70. #endif  // apxprev_h
  71.